package com.chance.cc.crawler.prod.command.job.domain.news.tianya;

import com.chance.cc.crawler.core.downloader.proxy.Proxy;
import com.chance.cc.crawler.prod.command.job.CrawlerJobCommand;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-09 17:11:30
 * @email okprog@sina.com
 */
public class TYCommonScript {
    public static final String domain = "tianya";

    public static final String metaServiceIp = "192.168.1.215";
    public static final int metaServicePort = 9599;
    public static final String metaServiceHttpPrefix = "http://"+metaServiceIp+":"+metaServicePort;

    public static final String kafkaTopicForRealTimeJob = "news";
    public static final String kafkaTopicForTraceJob = "news";

    public static CrawlerJobCommand metaServiceCommand = new CrawlerJobCommand(metaServiceIp,metaServicePort);

    public static Proxy proxy = new Proxy();
    static {
        //代理配置
        //HL89Q19E86E2987D
        //71F33D94CE5F7BF2
        proxy.setHost("http-dyn.abuyun.com");
        proxy.setPort(9020);
        proxy.setUsername("HL89Q19E86E2987D");
        proxy.setPassword("71F33D94CE5F7BF2");
    }
}
